<template>
<div>

    <div>
        index
    </div>

    <div>
    {{ content }}
    </div>


    <div>
    <button @click="test">test</button>
    </div>

</div>
</template>

<script>


export default {
    data() {
        return {
            content:""
        }
    },
    methods: {
        test() {
            console.log('test')
            console.log(this.$store)
            this.$store.dispatch("GetInfo").then(res => {
                console.log('dispatch')
                console.log(res)
                this.content = res
            }).catch(()=>{

            })
        }
    }
}
</script>
